var data =
  "0060n0odqg8g68g8qo23u2ovbu22476x5j795w4v5r626i6m697a7w6e3v65666d735m7v57485e7h676r986y926c4i625j608w5z5r8h7j998x90714r5h3s5w736m6b4j7q5b4b6g818c8e7j6e9e6k6j7x8j5n5y4r3u6c797u6m6c7h4f565o5v958e705m9b6t778h968j6e7869987u7o7i6r59624x5d4t7m7e55677v4b6p636w966k6m5w9b7n7b8f5y6d5l5s6f6c6p5h4p5q5n5v5z7x7t957d5o8177826w5o4j7471787j7f6y5x5g5t6o507i6h7l723s4m567o8y7m756h6z6265775p6f6x5v63966n6q5t777w3s4z637v80997u80814r63885x9l6h5k6i915i7a8g6i6j504f3s7j6v6l5w6g6v3w58834m6r7o697k8f5y5y775y7d4a494t777c7p775u6l4r4g655i6s6w5t777248757o656v674l676w566d6p63965t5x6b607r7b645o886n5z7o8g884u4d676w5j6q7g4m6k6k4r7n4w7c866u5s8k5l7s816u7t5z5q5h6d6m5l5r6c655b4g7673798e7x69885v809r7p5w5z6w3z9h737c617e8y757o8o6o6o7f5v768l547c9f8t7f6b7e6f8e918f956v6v63757m7t5o61545j7q5i7m72637c3u475n818d7i925d5p5k5y6a567y6a6957604g6x5z717t64697f776z8c6n4z6z3y4g7o4u736h5f5l60";


  var opt = {
    connType: "http",
    serviceHost: "",
    apiVer: "",
    serviceAct: "/honsanCloudAct",
    serviceUpload: "/honsanCloudFile/upload",
    serviceDownload: "/honsanCloudFile/download",
    debug: {
      log: true,
      error: true,
      warn: true,
      succ: true,
      post: true,
      result: true,
    },
    menuType: "TopLeftHide",
    clientKey: "rtehd3s2ytchzeqc",
    projectArgs: {},
    loginType: "",
    otherOpt: {
      enterSys: "http://wlbm.ccprec.com:8888/web/UCenter/ccExchange/Login.jsp",
      baoming: "https://user.ccprec.com",
      baojia: "https://bid.ejy365.com/login",
      yangGuangCaiGou: "https://www.ejy365.com/",
    },
    projectKey: "honsan_cloud_ccprec",
    _headers: {},
  };


const obj = {
  uuidCount: 0,
  codeStr: "",
  pubPass: "BX1o65CoobwcDP33iQW6ld1OyIPsNzF1",
  pubPassNum: [],
  publicKey: "",
  setPass(e) {
    this.pubPassNum = this.stringChangeASCIINumberArrs(e);
  },
  stringChangeASCIINumberArrs(e) {
    for (var t = [], n = 0; n < e.length; n++) t.push(e.charCodeAt(n));
    return t;
  },
  random(e,t) {
    return (
      void 0 === e && (e = 0),
      void 0 === t && (t = 1e4),
      Math.round(Math.random() * (t - e) + e)
    );
  },
  randomStr: function (e) {
    for (var t = [], n = 0; n < e; n++) t.push(this.random(0, 35).toString(36));
    return t.join("");
  },
  encode:function(e) {
    var t = "";
    console.log(e)
    try {
    } catch (n) {
      return console.error(n + "这不是一个正确的json对象"), "";
    }
    return this.encryptCode(t);
  },
  encryptCode:function(e) {
    // console.log(encodeURI(e),'encodeURI(e)')
    // console.log(this.stringChangeASCIINumberArrs(a),'this.stringChangeASCIINumberArrs(a)')
    for (
      var t = encodeURI(e),
        n = [],
        i = 0,
        r = "",
        o = this.random(16, 32),
        a = this.randomStr(o),
        s = this.stringChangeASCIINumberArrs(a),
        l = 0,
        c = 0,
        u = 0,
        h = 0;
      h < t.length;
      h++
    )
      (i = t.charCodeAt(h)),
        l == this.pubPassNum.length && (l = 0),
        (i += this.pubPassNum[l]),
        l++,
        c == s.length && (c = 0),
        (i += s[c]),
        c++,
        (u += i),
        u > 65535 && (u -= 65535),
        (r = i.toString(36)),
        (r = ("00" + r).substr(-2, 2)),
        1 == r.length && (r = "0" + r),
        n.push(r);
    var d = "";

    console.log('l',l)
    console.log('c',c)
    console.log('u',u)
    return (
      (d = u.toString(36)),
      (d = ("0000" + r).substr(-4, 4)),
      n.unshift(a),
      n.unshift(o.toString(36)),
      n.unshift(d),
      n.join("")
    );
  }
};


obj.setPass(obj.pubPass)
console.log(obj)
function uuid(t, n) {
  void 0 === t && (t = 16),
    void 0 === n && (n = !1),
    !n &&
      t < 16 &&
      (console.error("uuid useCase=false 时 len 不能小于 16"), (t = 16)),
    n &&
      t < 12 &&
      (console.error("uuid useCase=true 时 len 不能小于 12"), (t = 12));
  var i = (new Date().getTime() + 1e14).toString();
  return (
    (i += ("000" + (++obj.uuidCount).toString()).substr(-3, 3)),
    (i = n ? parseInt(i).to62() : parseInt(i).toString(36)),
    (i += obj.randomStr(t)),
    (i = i.substr(0, t)),
    i
  );
}




var uuid = uuid();
console.log(uuid)
o = {
  id: uuid,
  projectKey: opt.projectKey,
  clientKey: opt.clientKey,
  token: null,
  clientDailyData: {},
  acts: [
    {
      id: uuid,
      fullPath: "/ccprec.com.cn.web/client/info/cqweb_nonphy_cqzr",
      args: [
        3, // 第几页
        20, // 页数
        null,
      ],
    },
  ],
};

var a = JSON.stringify(o);

datas = obj.encode(a);

console.log("datas", datas);
